<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#content', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table>
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('Product.nombre', 'Linea productiva'); ?></th>
            <th><?php echo $this->Paginator->sort('FollowProduct.cantidad', 'Cantidad'); ?></th>
            <th><?php echo $this->Paginator->sort('FollowProduct.unidad', 'Unidad'); ?></th>
            <th></th>
            <th></th>
        </tr>
    </thead>
    <tbody>
<?php foreach ($FollowProducts as $FollowProduct): ?>
            <tr>
                <td><?php echo $FollowProduct['ProductiveActivity']['nombre']; ?></td>
                <td><?php echo $FollowProduct['FollowProduct']['cantidad']; ?></td>
                <td><?php echo $FollowProduct['FollowProduct']['unidad']; ?></td>
                <td><?php echo $this->Ajax->link('Editar', array('controller' => 'FollowProducts', 'action' => 'edit', $FollowProduct["FollowProduct"]["id"]), array('class' => 'acciones','update' => 'content', 'indicator' => 'loading', 'complete' => 'formularioAjax()')); ?></td>
                <td><?php echo $this->Ajax->link('Eliminar', array('controller' => 'FollowProducts', 'action' => 'delete', $FollowProduct["FollowProduct"]["id"], $follow_id), array('class' => 'acciones','update' => 'content', 'indicator' => 'loading'), '¿Desea eliminar el registro?'); ?></td>
            </tr>
<?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer(); ?>
<?php echo $this->Ajax->link('Adicionar', array('controller' => 'FollowProducts', 'action' => 'add', $follow_id), array('class' => 'acciones', 'update' => 'content', 'indicator' => 'loading', 'complete' => 'formularioAjax()')); ?>
<table width="100%" border="0"  CellSpacing=10  align="center" >
    <tbody>
        <tr>          
            <td><?php echo $this->Ajax->link($this->Html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'Regresar')), array('controller' => 'Follows', 'action' => 'index'), array('update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?></td>
        </tr>
    </tbody>
</table>